function fn(sql,callback){
    // console.log(1111);
    const mysql = require('mysql')
    const conn = mysql.createConnection(
        {
            host:'localhost',
            user:'root',
            password:'123456',
            database:'my_db'
        }
    )
    conn.connect()

    conn.query(sql,callback)

    conn.end()
    
}

module.exports = fn 